<template>
  <div class="hello">
    <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media">
          <img class="mui-media-object mui-pull-left"  src="http://himg.bdimg.com/sys/portrait/item/1ef3e7bd975353533032309521.jpg" alt="">
					<!-- <router-link :to="'/home/newsinfo/'+item.id">
						<div class="mui-media-body">
							<h1>幸福</h1>
							<p class="mui-ellipsis">
                <span>发表时间：2018-10-10 12：12：12</span>
                <span>点击：0次</span>
              </p>
						</div>
					</router-link> -->
				</li>
        <li class="mui-table-view-cell mui-media">
          <img class="mui-media-object mui-pull-left"  src="http://himg.bdimg.com/sys/portrait/item/1ef3e7bd975353533032309521.jpg" alt="">

					<a href="javascript:;">
						<div class="mui-media-body">
							<h1>幸福</h1>
							<p class="mui-ellipsis">
                <span>发表时间：{{ 1535615984 | dateFormat}}</span>
                <span>点击：0次</span>
              </p>
						</div>
					</a>
				</li>
        
			
			</ul>
  </div>
</template>

<script>
  import {Toast} from 'mint-ui'
  export default{
    data(){
      return{
        newslist:[]
      }
    },
    created(){
      this.getNewsList()
    },
    methods:{
      getNewsList(){
        // this.$http.get('api/getnewslist').then(res=>{
        //   if(res.body.status===0){
        //     this.newslist=res.body.message
        //   }else{
        //     Toast('err')
        //   }
        // })
        console.log(1)
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.mui-table-view h1 {
  font-size: 14px;
}
.mui-table-view p {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
</style>
